function ride(params:any){
    console.log(params)
    params.prototype.rideBike=()=>{
        console.log("骑自行车");
    }
}
@ride
class Human{
    arms:number
    legs:number
    head:number
    constructor(){
        this.arms=2;
        this.legs=2;
        this.head=1;
    }
    say(){

    }
}
let someone:any=new Human();
someone.rideBike();